# -*- coding: utf-8 -*-
# Django settings for myproject project.

import os

DEBUG = True
TEMPLATE_DEBUG = DEBUG

PROJECT_PATH = os.path.abspath(os.path.dirname(__file__))

#Esquema de login
LOGIN_REDIRECT_URL = '/cadastro/logado/'
AUTH_PROFILE_MODULE='cadastro.cadastro'
LOGIN_URL = '/cadastro/login/'
LOGOUT_URL = '/cadastro/sair/'

# E-mail
EMAIL_USE_TLS = True 
EMAIL_HOST = 'smtp.gmail.com' 
EMAIL_HOST_USER ='diogoxm@gmail.com' 
EMAIL_HOST_PASSWORD = '' 
EMAIL_PORT = 587

ADMINS = (
    # ('Your Name', 'your_email@domain.com'),
)

MANAGERS = ADMINS

DATABASE_ENGINE = 'mysql'           
DATABASE_NAME = 'hadassamusic' 
DATABASE_USER = 'hadassamusic'             
DATABASE_PASSWORD = 'ra8101056'         
DATABASE_HOST = ''             
DATABASE_PORT = ''             

TIME_ZONE = 'America/Sao_Paulo'

LANGUAGE_CODE = 'pt-br'

LANGUAGES = (
    ('pt-br', u'Português'),
    ('en', u'Inglês'),
    ('es', u'Espanhol'),
)

SITE_ID = 1

USE_I18N = True

MEDIA_ROOT = "/home/hadassamusic/webapps/static_media"

MEDIA_URL = 'http://hadassamusic.webfactional.com/media/'

ADMIN_MEDIA_PREFIX = 'http://hadassamusic.webfactional.com/media/admin/'

SECRET_KEY = ''

TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.load_template_source',
    'django.template.loaders.app_directories.load_template_source',
#     'django.template.loaders.eggs.load_template_source',
)

TEMPLATE_CONTEXT_PROCESSORS = (
	'django.core.context_processors.request',
	'django.core.context_processors.auth',
	'django.core.context_processors.debug',
	'django.core.context_processors.i18n',
	#'django.core.context_processors.PermWrapper',
	'django.core.context_processors.media',
)

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.middleware.locale.LocaleMiddleware',
)

ROOT_URLCONF = 'myproject.urls'

TEMPLATE_DIRS = (
    os.path.join(PROJECT_PATH, 'templates'),
)

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.admin',
    'django.contrib.admindocs',
    'geraldo',
    'myproject.cadastro',
    'myproject.aula',
)
